import axios from 'axios';

class Service {
    static listPri(callback) {
        return axios.get("/manage-api/priority").then((data) => {
            callback ? callback(data) : null;
        })
    }

    static updatePri(pris, callback) {
        return axios.post("/manage-api/priority", pris).then((data) => {
            callback ? callback(data) : null;
        })
    }
}

export default Service;